/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-08-22 16:18:21
 * @LastEditors: turingchang
 * @LastEditTime: 2020-12-21 15:16:32
 */

'use strict';


const BaseController = require('./base/base');

class TestController extends BaseController {

  async index() {
  }

  async test() {
    var data = {
      name: 'uuuuuuu',
      pwd: 'adsfafafasd',
      gg: null,
      jj: undefined,
      h: {},
      ro: {
        xxx: 0,
        ccc: null
      }
    };
    this.ctx.outSuccess('', data);
    // var data = this.app.utils.time.getTimeSpan();   
    //var data =this.app.utils.generator.avatars('书',null,null,null);
    //var data =this.app.utils.generator.generateUid(false);   
    //var data = this.app.utils.string.zhmoney.cn.toMoney("1");   
    //data = this.app.utils.string.pinyin.convert('QQQQ这是一个汉语拼音库',0, false, false, ' ');
    //data =this.app.utils.generator.svgCaptcha.create();    
    //data ==this.app.utils.emoji[0];
    //data = this.app.utils.string.encode(this.app.utils.emoji[0]);
    //var time ='2020-08-24 23:36:10';
    //data =this.app.utils.time.formatMoment(time);
    //var arr =[1,2,3,4,2,6,4];
    //data = this.app.utils.array.deduplication(arr);
    //this.app.getLogger('requestLogger').info(data);
    //this.app.getLogger('requestLogger').debug(data);
    //this.app.logger.info('666666');
    //this.ctx.requestLogger.error(data,'error info me ');
    //console.log(this.ctx.app.config.hasOwnProperty("jwt"));
    //console.log(this.ctx.app.config["jwt"]);
    //console.log('彩虹屁的彩虹屁'.rainbow);
    // console.log(this.ctx.app.utils.number.formatCurrency(33.84978));
    // console.log(this.ctx.app.utils.number.format(33,2));
    // console.log(111,typeof data);
    // var value ='0014ewtsdg';
    // var pattern = /^[a-z0-9]{4,20}$/;
    // if (pattern.test(value)) {
    //   console.log('yes');
    // }else{
    //   console.log('no');
    // }

    // var s = "admin2020";
    // s = this.ctx.app.utils.md5.md5(s);
    // console.log(66666,s);

    // var s = "2020-10";
    // s = this.ctx.app.utils.validator.isDate(s);
    // console.log(66666,s);

    // var s = this.ctx.app.adadadd;

    
  }




}

module.exports = TestController;
